<!DOCTYPE html>
<html class="no-js">
<head>
	<meta charset="utf-8">
	<title>{BEESCRM:$found['name']}</title>
	<meta name="description" content="">
	<meta name="HandheldFriendly" content="True">
	<meta name="MobileOptimized" content="320">
	<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui, user-scalable=no">
	<meta http-equiv="cleartype" content="on">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" type="text/css" href="/assets/base/found/css/common.css">
	<link rel="stylesheet" type="text/css" href="/assets/base/found/css/index.css">
	<link rel="stylesheet" type="text/css" href="/assets/base/found/css/font.css">
	<link rel="stylesheet" href="/assets/base/repair/js/sweetalert/lib/sweet-alert.css">
	<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script type="text/javascript">
    	wx.config({
			debug: false,
			appId: "{BEESCRM:$appid}",
			timestamp: "{BEESCRM:$timestamp}",
			nonceStr: "{BEESCRM:$noncestr}",
			signature: "{BEESCRM:$signature}",
			jsApiList: ['checkJsApi','onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ','onMenuShareWeibo'],
		});
    	wx.ready(function(){
    		var url = '{BEESCRM:$share_url}';
    		var imgUrl = '{BEESCRM:$share_image}';
    		var title = '{BEESCRM:$share_title}';
    		var desc = '{BEESCRM:$share_desc}';
    		//分享到朋友圈
    		wx.onMenuShareTimeline({
    			title: title, // 分享标题
    			link: url, // 分享链接
    			imgUrl: imgUrl, // 分享图标
    			success: function () { 
    				share(); 
    			},
    			cancel: function () { 
    				// 用户取消分享后执行的回调函数
    				/* alert('已取消'); */
    			}
    		});
    		//发送给好友
    		wx.onMenuShareAppMessage({
    			title: title, // 分享标题
    			desc: desc, // 分享描述
    			link: url, // 分享链接
    			imgUrl: imgUrl, // 分享图标
    			success: function () { 
    				// 用户确认分享后执行的回调函数
    				//share();
    			},
    			cancel: function () { 
    				// 用户取消分享后执行的回调函数
    			}
    		});
    	});
    </script>	
</head>
<body>